package com.hsylient.javase.chapter11.demo06;

public class YieldTest {

    public static void main(String[] args) {
        Thread threadA = new Thread(new YieldThread(), "A线程");
        Thread threadB = new Thread(new YieldThread(), "B线程");
        threadA.start();
        threadB.start();
    }
}
